import { createRouter, createWebHistory } from 'vue-router'
import Index from '../views/index.vue'
import User from '../views/user.vue'
import Permission from '../views/permission.vue'
import Login from '../views/login.vue'
import Role from '../views/role.vue'
import Menu from '../views/menu.vue'

const routes = [
  {
    path: '/',
    name: 'index',
    component: Index
	// children:[{
	// 	path:"/user",
	// 	component:User
	// },
	// {path:"/permission",component:Permission},
	// {path:"/role",component:Role},
	// {path:"/menu",component:Menu}]
  },
  {
	  path:'/login',
	  name:'login',
	  component:Login
  }

]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
